package Day02;

public class Test05 {
    public static void main(String[] args) {
        //定义一个字符串，输出他对应的字节和字符。

        String s ="你好，中国\n" +"中国，你好";
        byte [] b =s.getBytes();
        for(int i=0;i<b.length;i++) {
            System.out.print((byte)b[i] + " ");
        }
        System.out.println();
        byte[] bytes= {-60,-29,-70,-61,-93,-84,-42,-48,-71,-6,13,10,-42,-48,-71,-6,-93,-84,-60,-29,-70,-61};
        String str = new String(bytes);
        System.out.println(s);


    }
}
